package com.flyee.events
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.MovieClip;
	import flash.events.Event;
	
	public class LoaderEvent extends Event
	{
		public static const COMPLETE_LOADER:String = "loadComplete";
		public static const TIMEOUT_LOADER:String = "loadTimeOut";
		private var bitdata:BitmapData = null;
		private var mcdata:MovieClip = null;
		private var txtdata:String = null;
		public function LoaderEvent(type:String,data:*)
		{
			super(type, false, false);
			if(data is Bitmap){
				bitdata = Bitmap(data).bitmapData.clone();
			}else if(data is MovieClip){
				mcdata = MovieClip(data);
			}else{
				txtdata = data;
			}
		}
		
		public function getBitmapData():BitmapData{
			return bitdata;
		}
		
		public function getMovieClip():MovieClip{
			return mcdata;
		}
	
		public function getTxtFile():String{
			return txtdata;
		}		
	}
}